<?php
/**
 * Created by PhpStorm.
 * User: zhanglei
 * Date: 2018/4/10
 * Time: 8:58
 */

namespace app\admin\validate;


use think\Validate;

class Rule extends Validate
{
    protected $rule = [
        'title'=> 'require|unique:auth_rule',
        'name' => 'require|unique:auth_rule',
    ];

    protected $message = [
        'title.require'=> '权限名称不能为空',
        'title.unique'=> '权限名称已存在',
        'name.require' => '权限节点不能为空',
        'name.unique'  => '该权限节点已存在',
    ];
}